package com.balck.ioc.module;

public class User {
    private String username;
    private String addres;
    private Integer id;

    public User() {

    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", addres='" + addres + '\'' +
                ", id=" + id +
                '}';
    }

    public User(String username, String addres, Integer id) {
        this.username = username;
        this.addres = addres;
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
        System.out.println("调用set方法创建user,username:"+username);
    }

    public String getAddres() {
        return addres;
    }

    public void setAddres(String addres) {
        this.addres = addres;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

}
